package login;

import java.util.ArrayList;
import java.util.List;

public class User {
    //用户名字
    public String username;
    //用户身份
    public String ID;
    //用户类型
    public String uID;
    //用户uID

    public Double discount;
    //用户密码
    public String password;

    public Double money;
    //无参构造
    public String jianjie;

    public List<String> Remarks=new ArrayList<>();

    public Double youhuiquan;

    public User() {
        this.money=0.0;
        this.youhuiquan=0.0;
    }

    //全参构造
    public User(String username, String ID, String uID, Double discount, String password, Double money, String jianjie, Double youhuiquan) {
        this.username = username;
        this.ID = ID;
        this.uID = uID;
        this.discount = discount;
        this.password = password;
        this.money = money;
        this.jianjie = jianjie;
        this.youhuiquan = youhuiquan;
    }

    @Override
    public String toString()
    {
        return "User[uid="+uID+" 名字："+username+" 密码："+password+" 身份："+ID+"  简介:"+jianjie+"]";
    }
    //有参构造
    public User(String uID,String username, String ID, String password,Double money,Double youhuiquan) {
        this.uID=uID;
        this.username = username;
        this.ID = ID;
        this.password = password;
        this.money=money;
        this.youhuiquan=youhuiquan;
    }

    public Double getDiscount() {
        return discount;
    }

    public void setDiscount(Double discount) {
        this.discount = discount;
    }

    public Double getYouhuiquan() {
        return youhuiquan;
    }

    public void setYouhuiquan(Double youhuiquan) {
        this.youhuiquan = youhuiquan;
    }

    public String getJianjie() {
        return jianjie;
    }

    public void setJianjie(String jianjie) {
        this.jianjie = jianjie;
    }

    public List<String> getRemarks() {
        return Remarks;
    }

    public  void setRemarks(String str) {
        Remarks.add(str);
    }

    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }

    public String getuID() {
        return uID;
    }

    public void setuID(String uID) {
        this.uID = uID;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getID() {
        return ID;
    }

    public void setID(String ID) {
        this.ID = ID;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
